package com.example.ui.contact.bean;

import com.example.net.NetContact;


/**
 * 评论
 * @author Leone
 *
 */
public class CommentItem implements Comparable<CommentItem> {
	private String response;
	private String content;
	private String userId;
	private String nickname;
	private String typeId;
	private String communityId;
	private String txt;
	private String dateLine;
	private String location;
	private String name;
	private String headPic;
	private long time;// 消息日期	
	public CommentItem(){
		
	}
	
	public String getResponse(){
		return response;
	}
	public void setResponse(String response){
		this.response = response;
	}


	public String getContent() {
		return this.content;
	}

	public void setContent(String content) {
		this.content = content;
	}	
	
	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}
	
	
	
	public void setType(String type) {
		this.typeId = type;
	}	
	
	public String getType() {
		return this.typeId;
	}
		
	
	public String getNick() {
		return nickname;
	}

	public void setNick(String nickname) {
		this.nickname = nickname;
	}
	


	
	public String getCommunityId(){
		return this.communityId;
	}
	public void setCommunityId(String communityId){
		this.communityId = communityId;
	}
	
	public String getTxt(){
		return txt;
	}
	public void setTxt(String txt){
		this.txt = txt;
	}
	
	
	public String getDateLine(){
		return dateLine;
	}
	public void setDateLine(String dateLine){
		this.dateLine = dateLine;
	}
	
	public String getLocation(){
		return location;
	}
	public void setLocation(String location){
		this.location = location;
	}

	public String getName(){
		return name;
	}
	public void setName(String name){
		this.name = name;
	}
	
	public String getHeadPic(){
		return headPic;
	}
	public void setHeadPic(String headPic){
		this.headPic = headPic;
	}
	
	
	
	public long getTime() {
		return time;
	}

	public void setTime(long time) {
		this.time = time;
	}
	@Override
	public int compareTo(CommentItem another) {
		return (int) (Integer.parseInt(another.dateLine) 
				- Integer.parseInt(this.dateLine));
	}	
}
